#include "lcd_extra.h"
#include "display_drv.h"
void lcd_extra_config(void)
{
    oled_write_cmd(0xB2);
    oled_write_data(0x0C);
    oled_write_data(0x0C);
    oled_write_data(0x00);
    oled_write_data(0x33);
    oled_write_data(0x33);

    oled_write_cmd(0xB7);
    oled_write_data(0x72);

    oled_write_cmd(0xBB);
    oled_write_data(0x3D); // Vcom=1.625V

    oled_write_cmd(0xC2);
    oled_write_data(0x01);

    oled_write_cmd(0xC3);
    oled_write_data(0x19); // GVDD=4.8V

    oled_write_cmd(0xC4);
    oled_write_data(0x20); // VDV, 0x20:0v

    oled_write_cmd(0xC6);
    oled_write_data(0x0F); // 0x0F:60Hz

    oled_write_cmd(0xD0);
    oled_write_data(0xA4);
    oled_write_data(0xA1);

    oled_write_cmd(0xE0);
    oled_write_data(0x70);
    oled_write_data(0x04);
    oled_write_data(0x08);
    oled_write_data(0x09);
    oled_write_data(0x09);
    oled_write_data(0x05);
    oled_write_data(0x2A);
    oled_write_data(0x33);
    oled_write_data(0x41);
    oled_write_data(0x07);
    oled_write_data(0x13);
    oled_write_data(0x13);
    oled_write_data(0x29);
    oled_write_data(0x2F);

    oled_write_cmd(0xE1);
    oled_write_data(0x70);
    oled_write_data(0x03);
    oled_write_data(0x09);
    oled_write_data(0x0A);
    oled_write_data(0x09);
    oled_write_data(0x06);
    oled_write_data(0x2B);
    oled_write_data(0x34);
    oled_write_data(0x41);
    oled_write_data(0x07);
    oled_write_data(0x12);
    oled_write_data(0x14);
    oled_write_data(0x28);
    oled_write_data(0x2E);
}
